package com.glela.goods.model.vo;

import com.glela.activ.model.OActiv;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class OActivVO extends OActiv {
    private Long id;

    private Integer activType;

    private String activName;

    private String startTime;

    private String endTime;

    private Date createTime;

    private Long createBy;

    private Date updateTime;

    private Long updateBy;

    private Integer activStatus;

    private Integer isValid;

    private Long submitBy;

    private String submitTime;

    private Long confirmBy;

    private String confirmTime;

    private String disableTime;

    private Long disableBy;

    private Integer delFlag;

    private Integer mutualExclusion;

    private List<Map<String, Object>> activitiesList = new ArrayList<Map<String, Object>>();//活动的具体内容


    public void setOActivVO(OActiv oActiv){
        this.id = oActiv.getId();
        this.activType = oActiv.getActivType();
        this.activName = oActiv.getActivName();
        this.startTime = oActiv.getStartTime();
        this.endTime = oActiv.getEndTime();
        this.createTime = oActiv.getCreateTime();
        this.createBy = oActiv.getCreateBy();
        this.updateTime = oActiv.getUpdateTime();
        this.updateBy = oActiv.getUpdateBy();
        this.activStatus = oActiv.getActivStatus();
        this.isValid = oActiv.getIsValid();
        this.submitBy = oActiv.getSubmitBy();
        this.submitTime = oActiv.getSubmitTime();
        this.submitBy = oActiv.getSubmitBy();
        this.confirmBy = oActiv.getConfirmBy();
        this.confirmTime = oActiv.getConfirmTime();
        this.disableBy = oActiv.getDisableBy();
        this.disableTime = oActiv.getDisableTime();
        this.delFlag = oActiv.getDelFlag();
        this.mutualExclusion = oActiv.getMutualExclusion();
        this.activitiesList = new ArrayList<>();
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public Integer getActivType() {
        return activType;
    }

    @Override
    public void setActivType(Integer activType) {
        this.activType = activType;
    }

    @Override
    public String getActivName() {
        return activName;
    }

    @Override
    public void setActivName(String activName) {
        this.activName = activName;
    }

    @Override
    public String getStartTime() {
        return startTime;
    }

    @Override
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Override
    public String getEndTime() {
        return endTime;
    }

    @Override
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Long getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public Long getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Integer getActivStatus() {
        return activStatus;
    }

    @Override
    public void setActivStatus(Integer activStatus) {
        this.activStatus = activStatus;
    }

    @Override
    public Integer getIsValid() {
        return isValid;
    }

    @Override
    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    @Override
    public Long getSubmitBy() {
        return submitBy;
    }

    @Override
    public void setSubmitBy(Long submitBy) {
        this.submitBy = submitBy;
    }

    @Override
    public String getSubmitTime() {
        return submitTime;
    }

    @Override
    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }

    @Override
    public Long getConfirmBy() {
        return confirmBy;
    }

    @Override
    public void setConfirmBy(Long confirmBy) {
        this.confirmBy = confirmBy;
    }

    @Override
    public String getConfirmTime() {
        return confirmTime;
    }

    @Override
    public void setConfirmTime(String confirmTime) {
        this.confirmTime = confirmTime;
    }

    @Override
    public String getDisableTime() {
        return disableTime;
    }

    @Override
    public void setDisableTime(String disableTime) {
        this.disableTime = disableTime;
    }

    @Override
    public Long getDisableBy() {
        return disableBy;
    }

    @Override
    public void setDisableBy(Long disableBy) {
        this.disableBy = disableBy;
    }

    @Override
    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public Integer getMutualExclusion() {
        return mutualExclusion;
    }

    @Override
    public void setMutualExclusion(Integer mutualExclusion) {
        this.mutualExclusion = mutualExclusion;
    }

    public List<Map<String, Object>> getActivitiesList() {
        return activitiesList;
    }

    public void setActivitiesList(List<Map<String, Object>> activitiesList) {
        this.activitiesList = activitiesList;
    }
}
